<template>
  <div>
      <h1>我是一个测试组件</h1>
      <button @click="test">ajax请求测试</button>
  </div>
</template>

<script>
import {getCategoryList} from '@/api/Home'
export default {
  name: 'TestComponent',
  methods:{
      async test(){
          const result = await getCategoryList()
          console.log(result);
      }
  }
}
</script>

<style lang="less" scoped>

</style>
